#include "LUNA_ISoundFactory.h"
#include "LUNA_SoundManager.h"

using namespace LUNA;

ISoundFactory::ISoundFactory( SoundManager &soundManager, 
	const std::string &type ) :
mSoundManager( soundManager ),
mFactoryType( type )
{
	mSoundManager.registerSoundFactory( this );
}

ISoundFactory::~ISoundFactory()
{
	mSoundManager.unregisterSoundFactory( this );
}

const std::string &ISoundFactory::getFactoryType() const
{
	return mFactoryType;
}